﻿using System;
using System.Collections.Generic;
using Cut;

namespace CuttingSample
{
    static class Program
    {
        static void Main()
        {
            //var material = new Material(100, 200);
            //var detail = new Detail(35, 55);
            var details = new List<Detail>
                              {
                                  new Detail(10, 20),
                                  new Detail(10, 10),
                                  new Detail(5, 10),
                                  new Detail(50, 20),
                                  new Detail(10, 15),
                                  new Detail(100, 20)
                              };
            foreach (var item in details)
            {
                Console.WriteLine("detail: {0}x{1}", item.GetWidth(), item.GetHeight());
            }
            details.Sort();
            foreach (var item in details)
            {
                Console.WriteLine("detail: {0}x{1}", item.GetWidth(), item.GetHeight());
            }
            //material.CreateFillingMatrix(detail);

            Console.ReadLine();
        }
    }
}
